package com.yswee.mallnavi.entity.common;


import com.yswee.framework.data.IListItem;
import com.yswee.mallnavi.entity.BaseEntity;

public abstract class LetterEntity extends BaseEntity implements IListItem {

	private static final long serialVersionUID = -1457720964493946381L;
	
	public static final int VIEWTYPEITEM = 0;
	public static final int VIEWTYPEGROUP = 1;
	public static final int VIEWTYPECOUNT = 2;
	
	public String key;
	public String pinyin;
	public boolean isGroup;
	
	@Override
	public int getItemViewType() {
		return isGroup ? VIEWTYPEGROUP : VIEWTYPEITEM;
	}

}